	<% link_to edit_operation_path, :class => 'ui-state-default ui-corner-all dialog_link' do %>
		<span class="ui-icon ui-icon-pencil"></span>Edit
	<% end %>&nbsp;
	<% link_to @operation, :confirm => 'Are you sure ?', :method => :delete, :class => "ui-state-error ui-corner-all dialog_link ui-state-hover" do %>
		<span class="ui-icon ui-icon-close"></span>Destroy
	<% end %>&nbsp;
	<% link_to operations_path, :class => 'ui-state-default ui-corner-all dialog_link' do %>
		<span class="ui-icon ui-icon-arrowreturnthick-1-w"></span>Back
	<% end %>
<p>
  <b>Name:</b>
  <%=h @operation.name %>
</p>

<p>
  <b>Description:</b>
  <%=h @operation.description %>
</p>

<p>
  <b>Start date:</b>
  <%=h @operation.start_date %>
</p>

<p>
  <b>End date:</b>
  <%=h @operation.end_date %>
</p>

<p>
  <b>Status:</b>
  <%=h Operation::OPERATION_STATUS[@operation.status] %>
</p>

<p>
  <h2>Computers :</h2>
 
		<% Computer.all.each do |computer| %>
			<%if @operation.computers.include?(computer)%>
			  <ul><%= link_to computer.name, computer %></ul>
			<%end%>
		<%end%>
</p>
</br>
	<% link_to edit_operation_path, :class => 'ui-state-default ui-corner-all dialog_link' do %>
		<span class="ui-icon ui-icon-pencil"></span>Edit
	<% end %>&nbsp;
	<% link_to @operation, :confirm => 'Are you sure ?', :method => :delete, :class => "ui-state-error ui-corner-all dialog_link ui-state-hover" do %>
		<span class="ui-icon ui-icon-close"></span>Destroy
	<% end %>&nbsp;
	<% link_to operations_path, :class => 'ui-state-default ui-corner-all dialog_link' do %>
		<span class="ui-icon ui-icon-arrowreturnthick-1-w"></span>Back
	<% end %>
